<template>
  <div>
    <el-form ref="manualForm" :model="registerManualVo" label-width="160px">
      <div class="main-container">
        <div class="section-box">一、进修学员入科前培训</div>
        <div class="row-box">
          <el-form-item label="" prop="introduceFlag" label-width="0">
            <el-row>
              <el-col :span="20">1、入科时学科基本情况介绍</el-col>
              <el-col :span="4">
                <el-radio-group v-model="registerManualVo.introduceFlag">
                  <el-radio :label="1">是</el-radio>
                  <el-radio :label="2">否</el-radio>
                </el-radio-group>
              </el-col>
            </el-row>
          </el-form-item>
          <el-form-item label="" prop="planFlag" label-width="0">
            <el-row>
              <el-col :span="20">2、提出明确的培训计划</el-col>
              <el-col :span="4">
                <el-radio-group v-model="registerManualVo.planFlag">
                  <el-radio :label="1">是</el-radio>
                  <el-radio :label="2">否</el-radio>
                </el-radio-group>
              </el-col>
            </el-row>
          </el-form-item>
          <el-form-item label="" prop="environmentFlag" label-width="0">
            <el-row>
              <el-col :span="20">3、学科告知工作流程及医疗环境</el-col>
              <el-col :span="4">
                <el-radio-group v-model="registerManualVo.environmentFlag">
                  <el-radio :label="1">是</el-radio>
                  <el-radio :label="2">否</el-radio>
                </el-radio-group>
              </el-col>
            </el-row>
          </el-form-item>
        </div>
        <div class="separate-box"></div>
        <div class="section-box">二、进修学员入科后教学管理</div>
        <div class="row-box">
          <el-form-item label="" prop="teacherFlag" label-width="0">
            <el-row>
              <el-col :span="20">1、安排临床上级带教老师</el-col>
              <el-col :span="4">
                <el-radio-group v-model="registerManualVo.teacherFlag">
                  <el-radio :label="1">是</el-radio>
                  <el-radio :label="2">否</el-radio>
                </el-radio-group>
              </el-col>
            </el-row>
          </el-form-item>
          <el-form-item label="" prop="businessFlag" label-width="0">
            <el-row>
              <el-col :span="20">2、学科安排进修学员参与业务学习</el-col>
              <el-col :span="4">
                <el-radio-group v-model="registerManualVo.businessFlag">
                  <el-radio :label="1">是</el-radio>
                  <el-radio :label="2">否</el-radio>
                </el-radio-group>
              </el-col>
            </el-row>
          </el-form-item>
          <el-form-item label="" prop="timecardFlag" label-width="0">
            <el-row>
              <el-col :span="20">3、学科对进修学员的考勤</el-col>
              <el-col :span="4">
                <el-radio-group v-model="registerManualVo.timecardFlag">
                  <el-radio :label="1">是</el-radio>
                  <el-radio :label="2">否</el-radio>
                </el-radio-group>
              </el-col>
            </el-row>
          </el-form-item>
        </div>
        <div class="separate-box"></div>
        <div class="section-box">三、进修学员培训结束学科鉴定</div>
        <div class="row-box">
          <el-form-item label="" prop="examineFlag" label-width="0">
            <el-row>
              <el-col :span="20">1、学科对进修学员的临床考核记录</el-col>
              <el-col :span="4">
                <el-radio-group v-model="registerManualVo.examineFlag">
                  <el-radio :label="1">是</el-radio>
                  <el-radio :label="2">否</el-radio>
                </el-radio-group>
              </el-col>
            </el-row>
          </el-form-item>
        </div>
        <div class="separate-box"></div>
        <div class="section-box">四、总体评价</div>
        <el-row class="row-box">
          <el-col :span="24">1、您认为该学科具有哪些方面的实力 (临床技术、学术氛围和学科管理等) ?</el-col>
          <el-col :span="24" style="margin-top: 15px;">
            <el-form-item label="" prop="strengthContent" label-width="0">
              <el-input type="textarea" :rows="5" v-model="registerManualVo.strengthContent" placeholder="请输入"/>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row class="row-box">
          <el-col :span="24">2、您认为该学科哪些方面需要改进?</el-col>
          <el-col :span="24" style="margin-top: 15px;">
            <el-form-item label="" prop="improveContent" label-width="0">
              <el-input type="textarea" :rows="5" v-model="registerManualVo.improveContent" placeholder="请输入"/>
            </el-form-item>
          </el-col>
        </el-row>
      </div>
    </el-form>
  </div>
</template>

<script>

import { getRegisterInfo } from '@/api/business/registerInfo'

export default {
  props: {
    registerId: null
  },
  data() {
    return {
      // 培养手册
      registerManualVo: {}
    }
  },
  mounted() {
    if (this.registerId) {
      this.getInfo()
    }
  },
  methods: {
    getInfo() {
      getRegisterInfo(this.registerId).then(response => {
        this.form = response.data
        if (this.form.registerManualVo) {
          this.registerManualVo = this.form.registerManualVo
        } else {
          this.registerManualVo = {
            id: null,
            registerId: this.registerId,
            clinicNumber: null,
            emergencyNumber: null,
            averageNumber: null,
            clinicEmergencyContent: null,
            manageBeds: null,
            caseNumber: null,
            wardContent: null,
            businessContent: null,
            otherContent: null,
            personalSummary: null,
            introduceFlag: null,
            planFlag: null,
            environmentFlag: null,
            teacherFlag: null,
            businessFlag: null,
            timecardFlag: null,
            examineFlag: null,
            strengthContent: null,
            improveContent: null,
          }
        }
      })
    },
  }
}
</script>
<style lang="scss" scoped>
.main-container {
  margin-bottom: 15px;
  padding: 15px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 5px 5px 10px 0 rgba(157, 156, 156, 0.1);
}

.section-box {
  font-size: 16px;
  font-weight: bolder;
  margin-bottom: 10px;
}

.row-box {
  margin: 0 25px;
}
</style>
